package cn.disignPattern.com.partTwo;

/**
 * Created by Administrator on 2021/6/22 0022.
 */
public class WeatherStation {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionDisply conditionDisply = new CurrentConditionDisply(weatherData);
        weatherData.setWeatherData(80,70,30.4f);
        weatherData.setWeatherData(81,70,30.4f);
        weatherData.setWeatherData(82,70,30.4f);

        WeatherData2 weatherData2 = new WeatherData2();
        CurrentConditionDisply2 conditionDisply2 = new CurrentConditionDisply2(weatherData2);
        weatherData2.setWeatherData(80,70,30.4f);
        weatherData2.setWeatherData(81,70,30.4f);
        weatherData2.setWeatherData(82,70,30.4f);
    }
}